package com.example.testdb1.filter;

import javax.servlet.*;
import java.io.IOException;

// @WebFilter(urlPatterns = "/*")
//测试用，验证过滤器链
public class ABcFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("abc拦截前的逻辑，过滤器2拦截前的逻辑");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("abc拦截后的逻辑，过滤器2拦截后的逻辑");
    }
}
